@import '~styles/colors.less';

.root {
  display: inline-block;
}

.tooltip {
  display: inline-block;
  background-color: @primary;
  color: #ffffff;
  padding: 5px 7px;
  font-size: 11px;
  border-radius: 3px;

  &:before {
    content: '';
    display: inline-block;
    position: absolute;
    top: -7px;
    transform: translateX(-5px);
    left: 50%;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 5px 7px 5px;
    border-color: transparent transparent @primary transparent;
  }

  &.dark {
    background-color: @chromeBackgroundColor;

    &:before {
      border-color: transparent transparent @chromeBackgroundColor transparent;
    }
  }
}
